package com.zh.work.entity.trans;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zh.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("二维码订单表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qrcode_order")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QrCodeOrderEntity extends BaseEntity {
  private static final long serialVersionUID = -3351090752504536360L;

  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "机构号", name = "branchno")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "机构名称", name = "branchName")
  private String branchName;
  @ApiModelProperty(value = "代理商号", name = "agentno")
  @TableField(value = "agentno")
  private String agentNo;
  @ApiModelProperty(value = "代理商名", name = "agentName")
  private String agentName;
  @ApiModelProperty(value = "商户号", name = "merchNo")
  @TableField(value = "merchno")
  private String merchNo;
  @ApiModelProperty(value = "商户名", name = "merchName")
  private String merchName;
  @ApiModelProperty(value = "交易日期", name = "transDate")
  private String transDate;
  @ApiModelProperty(value = "交易时间", name = "transTime")
  private String transTime;
  @ApiModelProperty(value = "支付类型", name = "payType")
  private Integer payType;
  @ApiModelProperty(value = "扫码类型", name = "scanType")
  private Integer scanType;
  @ApiModelProperty(value = "商户流水号", name = "traceNo")
  @TableField(value = "traceno")
  private String traceNo;
  @ApiModelProperty(value = "交易订单号", name = "orderNo")
  @TableField(value = "orderno")
  private String orderNo;
  @ApiModelProperty(value = "交易金额", name = "amount")
  private Float amount;
  @ApiModelProperty(value = "交易通知地址", name = "notifyUrl")
  private String notifyUrl;
  @ApiModelProperty(value = "交易返回地址", name = "returnUrl")
  private String returnUrl;
  @ApiModelProperty(value = "清算类型(1-T+0 2-T+1)", name = "settleType")
  private Integer settleType;
  @ApiModelProperty(value = "交易状态(0-下单成功 1-支付成功 2-支付失败)", name = "status")
  private Integer status;
  @ApiModelProperty(value = "支付说明", name = "statusDesc")
  private String statusDesc;
  @ApiModelProperty(value = "渠道编码", name = "channelCode")
  private String channelCode;
  @ApiModelProperty(value = "渠道商户号", name = "channelMerchNo")
  @TableField(value = "channel_merchno")
  private String channelMerchNo;
  @ApiModelProperty(value = "渠道地址", name = "channelUrl")
  private String channelUrl;
  @ApiModelProperty(value = "商户手续费", name = "merchFee")
  private Float merchFee;
  @ApiModelProperty(value = "渠道成本", name = "channelFee")
  private Float channelFee;
  @ApiModelProperty(value = "平台成本", name = "branchFee")
  private Float branchFee;
  @ApiModelProperty(value = "身份证号", name = "certNo")
  @TableField(value = "certno")
  private String certNo;
  @ApiModelProperty(value = "手机号", name = "mobile")
  private String mobile;
  @ApiModelProperty(value = "账户编号", name = "accountNo")
  @TableField(value = "accountno")
  private String accountNo;
  @ApiModelProperty(value = "结算户名", name = "accountName")
  private String accountName;
  @ApiModelProperty(value = "联行号", name = "bankNo")
  @TableField(value = "bankno")
  private String bankNo;
  @ApiModelProperty(value = "银行类别", name = "bankType")
  private String bankType;
  @ApiModelProperty(value = "微信秘钥", name = "openId")
  private String openId;
  @ApiModelProperty(value = "银行名称", name = "bankName")
  private String bankName;
  @ApiModelProperty(value = "查询次数", name = "queryCount")
  private Integer queryCount;
  @ApiModelProperty(value = "最后查询时间", name = "lastQueryTime")
  private String lastQueryTime;
  @ApiModelProperty(value = "接口类型(1-手机APP 2-传统POS 3-接口接入)", name = "interType")
  private Integer interType;
  @ApiModelProperty(value = "", name = "goodName")
  private String goodName;
  @ApiModelProperty(value = "", name = "cust1")
  private String cust1;
  @ApiModelProperty(value = "", name = "cust2")
  private String cust2;
  @ApiModelProperty(value = "", name = "cust3")
  private String cust3;
  @ApiModelProperty(value = "渠道订单号", name = "channelOrderNo")
  @TableField(value = "channel_orderno")
  private String channelOrderNo;
  @ApiModelProperty(value = "商户订单号", name = "merchOrderNo")
  @TableField(value = "merch_orderno")
  private String merchOrderNo;
  @ApiModelProperty(value = "开始金额", name = "beginAmount")
  @TableField(exist = false)
  private Float beginAmount;
  @ApiModelProperty(value = "结束金额", name = "endAmount")
  @TableField(exist = false)
  private Float endAmount;
  @ApiModelProperty(value = "查询类型(1.实时，2.历史)", name = "type")
  @TableField(exist = false)
  private Integer type;

}
